package com.wsx.ones.cloud.aop;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

/**
 * 切面编程
 * Created by wangshuaixin on 17/5/13.
 */
@Aspect
@Component
public class AopMonitor {

    @AfterReturning("execution(* com.wsx.ones.cloud.redis.impl.*Impl.get* (..))")
    public void logService(JoinPoint joinPoint) {
        System.out.println(joinPoint.toString());
    }
}
